package org.darkforest.enums;
/**
 * 
 * 项目名称         :bwmall-common
 * 文件名           :PointTypeEnum.java
 * 开发公司及作者    :陈超
 * 版本号及开发日期  :Rev. 1.00 (2015年2月15日)
 */
public enum PointTypeEnum {
	REGIST("注册","regist")
	,RECOMMEND_REGIST("推荐注册","recommend_regist")
    ,LOGIN("登录","login")
    ,COMMENTS("商品评论","3")
    ,ORDER("订单消费","4")
    ,SYSTEM("积分管理","5")
    ,POINTORDER("礼品兑换","6")
    ,APP("积分兑换","7")
	;
	
	
	private PointTypeEnum(String text, String value){
		this.text = text;
		this.value = value;
	}
	
	
	private String text;
	private String value;
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	
	public static PointTypeEnum getByValue(String value){
		for(PointTypeEnum e : PointTypeEnum.values()){
			if(e.value.equals(value)){
				return e;
			}
		}
		return null;
	}
	
}
